﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Visame's Blog</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="expires" content="0" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="author" content="Visame" />
<meta name="generator" content="Visame.com" />
<meta name="copyright" content="Copyright (c) 2009 Visame. All Rights Reserved." />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="7 days" />
<meta name="rating" content="general" />

<meta name="keywords" content="Visame's Blog" />
<meta name="description" content="Visame's Blog" />
<link rel="shortcut icon" href="/static/images/favicon.png" type="image/png" />
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,syntaxhl",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,syntaxhl,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		// Replace values for the template plugin
		template_replace_values : {
			username : "Visame",
			staffid : "1985813"
		}
	});
</script>
</head>
<body>
<!-- main -->
<div class="wrapper"> 
{% if entry %}
<form id="editpost" method="post">
{% else %}
<form id="publish" method="post">
{% endif %}
	<label for="title">Title:</label> <br />
	{% if entry %}
	<input name="title" id="title" value="{{ entry.title }}"  style="width: 80%;"/>
	{% else %}
	<input name="title" id="title" value=""  style="width: 80%;"/>
	{% endif %}

	<br />
	<label for="post_content">Excerpt:</label> <br />
	<textarea name="excerpt" id="post_excerpt" rows="15" cols="80" style="width: 80%;">
	{% if entry %}
	{{ entry.excerpt }}
	{% endif %}
	</textarea>
	<br />
	<label for="post_content">Content:</label> <br />
	<textarea name="content" id="post_content" rows="90" cols="80" style="width: 80%;">
	{% if entry %}
	{{ entry.content }}
	{% endif %}
	</textarea>
	<br />
	<br/>
	Previous Tags:
	{% for alltag in alltags %}
	[ {{ alltag.name }} ] 
	{% endfor %}
	<br />
	<label for="tags">Tags:</label> <br />
	{% if entry %}
	<input name="tags" id="tags" value="{{ entry_tags }}" style="width: 80%;/>
	{% else %}
	<input name="tags" id="tags" value="" style="width: 80%;/>
	{% endif %}
	<br/>
	<label for="category">Categories: {{ entry.category.name }}</label> <br />
	{% if entry %}
	{% ifequal entry.category.imgname "Oversea" %}
	<input type="radio" name="category" value="留学" checked>留学<br/>
	<input type="radio" name="category" value="IT">IT<br/>
	<input type="radio" name="category" value="外语">外语<br/>
	<input type="radio" name="category" value="网摘">网摘<br/>
	<input type="radio" name="category" value="其余">其余<br/>
	<label for="imgname">Category Imgs:</label> <br />
	<input type="radio" name="imgname" value="Oversea" checked>留学<br/>
	<input type="radio" name="imgname" value="IT">IT<br/>
	<input type="radio" name="imgname" value="Languages">外语<br/>
	<input type="radio" name="imgname" value="Web">网摘<br/>
	<input type="radio" name="imgname" value="Others">其余<br/>
	{% endifequal %}
	{% ifequal entry.category.imgname "IT" %}
	<input type="radio" name="category" value="留学">留学<br/>
	<input type="radio" name="category" value="IT"  checked>IT<br/>
	<input type="radio" name="category" value="外语">外语<br/>
	<input type="radio" name="category" value="网摘">网摘<br/>
	<input type="radio" name="category" value="其余">其余<br/>
	<label for="imgname">Category Imgs:</label> <br />
	<input type="radio" name="imgname" value="Oversea">留学<br/>
	<input type="radio" name="imgname" value="IT"  checked>IT<br/>
	<input type="radio" name="imgname" value="Languages">外语<br/>
	<input type="radio" name="imgname" value="Web">网摘<br/>
	<input type="radio" name="imgname" value="Others">其余<br/>
	{% endifequal %}
	{% ifequal entry.category.imgname "Languages" %}
	<input type="radio" name="category" value="留学">留学<br/>
	<input type="radio" name="category" value="IT">IT<br/>
	<input type="radio" name="category" value="外语"  checked>外语<br/>
	<input type="radio" name="category" value="网摘">网摘<br/>
	<input type="radio" name="category" value="其余">其余<br/>
	<label for="imgname">Category Imgs:</label> <br />
	<input type="radio" name="imgname" value="Oversea">留学<br/>
	<input type="radio" name="imgname" value="IT">IT<br/>
	<input type="radio" name="imgname" value="Languages"  checked>外语<br/>
	<input type="radio" name="imgname" value="Web">网摘<br/>
	<input type="radio" name="imgname" value="Others">其余<br/>
	{% endifequal %}
	{% ifequal entry.category.imgname "Web" %}
	<input type="radio" name="category" value="留学">留学<br/>
	<input type="radio" name="category" value="IT">IT<br/>
	<input type="radio" name="category" value="外语">外语<br/>
	<input type="radio" name="category" value="网摘"  checked>网摘<br/>
	<input type="radio" name="category" value="其余">其余<br/>
	<label for="imgname">Category Imgs:</label> <br />
	<input type="radio" name="imgname" value="Oversea">留学<br/>
	<input type="radio" name="imgname" value="IT">IT<br/>
	<input type="radio" name="imgname" value="Languages">外语<br/>
	<input type="radio" name="imgname" value="Web"  checked>网摘<br/>
	<input type="radio" name="imgname" value="Others">其余<br/>
	{% endifequal %}
	{% ifequal entry.category.imgname "Others" %}
	<input type="radio" name="category" value="留学">留学<br/>
	<input type="radio" name="category" value="IT">IT<br/>
	<input type="radio" name="category" value="外语">外语<br/>
	<input type="radio" name="category" value="网摘">网摘<br/>
	<input type="radio" name="category" value="其余"  checked>其余<br/>
	<label for="imgname">Category Imgs:</label> <br />
	<input type="radio" name="imgname" value="Oversea">留学<br/>
	<input type="radio" name="imgname" value="IT">IT<br/>
	<input type="radio" name="imgname" value="Languages">外语<br/>
	<input type="radio" name="imgname" value="Web">网摘<br/>
	<input type="radio" name="imgname" value="Others"  checked>其余<br/>
	{% endifequal %}
	{% else %}
	<input type="radio" name="category" value="留学">留学<br/>
	<input type="radio" name="category" value="IT">IT<br/>
	<input type="radio" name="category" value="外语">外语<br/>
	<input type="radio" name="category" value="网摘">网摘<br/>
	<input type="radio" name="category" value="其余">其余<br/>
	<label for="imgname">Category Imgs:</label> <br />
	<input type="radio" name="imgname" value="Oversea">留学<br/>
	<input type="radio" name="imgname" value="IT">IT<br/>
	<input type="radio" name="imgname" value="Languages">外语<br/>
	<input type="radio" name="imgname" value="Web">网摘<br/>
	<input type="radio" name="imgname" value="Others">其余<br/>
	{% endif %}

	{% if entry %}
	<input type="submit" value="修改" />
	{% else %}
	<input type="submit" value="提交" />
	{% endif %}

</form>
	<!-- This is a comment -->
</div>
</body>
</html>